<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>

export default {
  name: 'App',
  mounted () {
    let htmlWid = document.documentElement.clientWidth || document.body.clientWidth
    console.log(htmlWid)
    if (htmlWid > 750) {
      console.log(htmlWid)
      htmlWid = 750
    }
    let htmlDom = document.getElementsByTagName('html')[0]
    htmlDom.style.fontSize = htmlWid / 20 + 'px'
  }
}
</script>

<style>
html {
  font-size: 32px;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
</style>
